<%@ page language="java" import="java.util.*,com.deryun.tyl.bean.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>社区服务供应商</title>
<%@ include file="/WEB-INF/views/layout/public_css.jsp"%>
<%@ include file="/WEB-INF/views/layout/public_js.jsp"%>
<style type="text/css">
.search-area .form-control {
	width:220px;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
    $('#special_news').DataTable({
    	"pagingType":   "full_numbers",
    	"oLanguage" : {
			"sProcessing" : "处理中...",
			"sInfo": "显示第 _START_ 至 _END_ 项结果，共 _TOTAL_ 项",
			"oPaginate" : {
				"sFirst" : "首页",
				"sPrevious" : "上页",
				"sNext" : "下页",
				"sLast" : "末页"
			}
		},
    });
} );


</script>
</head>
<body>
<%@ include file="/WEB-INF/views/layout/head_ele.jsp"%>
<div class="container-fluid">
    <div class="list-title search-area" style="margin-top:5px;height:auto;">
    <div class="form-inline">
		<div class="form-group">
		    <label for="">地区</label>
		    <!-- <select class="form-control" style="width:115px">
			  <option>不限</option>
			  <option>重庆市</option>
			  <option>所有区县</option>
			</select> -->
			<select class="form-control" style="width:115px">
			  <option>主城九区</option>
			  <option>渝中区</option>
			  <option>江北区</option>
			  <option>南岸区</option>
			  <option>沙坪坝区</option>
			  <option>九龙坡区</option>
			  <option>大渡口区</option>
			  <option>渝北区</option>
			  <option>巴南区</option>
			  <option>北碚区</option>
			  <option>双桥区</option>
			  <option>两江新区</option>
			  <option>两江新区（旧）</option>
			</select>
			<select class="form-control" style="width:115px">
			  <option>渝东北地区</option>
			  <option>万州区</option>
			  <option>城口县</option>
			  <option>垫江县</option>
			  <option>丰都县</option>
			  <option>奉节县</option>
			  <option>开县</option>
			  <option>梁平县</option>
			  <option>巫山县</option>
			  <option>巫溪县</option>
			  <option>云阳县</option>
			  <option>忠县</option>
			</select>
			<select class="form-control" style="width:115px">
			  <option>渝东南地区</option>
			  <option>黔江区</option>
			  <option>涪陵区</option>
			  <option>彭水县</option>
			  <option>石柱县</option>
			  <option>武隆县</option>
			  <option>秀山县</option>
			  <option>酉阳县</option>
			</select>
			<select class="form-control" style="width:115px">
			  <option>渝西地区</option>
			  <option>万盛区</option>
			  <option>长寿区</option>
			  <option>江津区</option>
			  <option>合川区</option>
			  <option>璧山区</option>
			  <option>大足区</option>
			  <option>南川区</option>
			  <option>綦江区</option>
			  <option>荣昌县</option>
			  <option>铜梁区</option>
			  <option>潼南县</option>
			  <option>永川区</option>
			</select>
		  </div>
		  <div class="form-group">
		    <button type="button" class="btn btn-primary">搜索</button>
		  </div>
    </div>
    </div>
	<table id="special_news" class="table table-striped" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th>供应商名称</th>
                <th>供应商联系人</th>
                <th>供应商联系方式</th>
                <th>供应商提供服务的其他社区</th>
            </tr>
        </thead>
        <tbody>
                
             <%
				List<Provider> pr_list =  (List<Provider>) request.getAttribute("message");
				for(Provider p: pr_list)
				{
		 %>
        
            <tr>
                <td><%=p.providerName %></td>
                <td><%=p.providerMan %></td>
                 <td><%=p.phoneNum %></td>
                 <td><%=p.otherZone %></td>
            </tr>
                    <%
				}
		 %>
        </tbody>
    </table>
</div>
</body>
</html>